<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue基础回顾</title>
    <script src="./src/vue.js"></script>
</head>
<body>
    <div id="app">
        {{ name }}
        <input type="button" value="改变name的值" @click="change_name">
    </div>

</body>
<script>
    // 创建vue对象
    var vm = new Vue({
        // 指定Vue控制页面区域
        el:"#app",
        data:{
            name: "itcast"
        },
        methods:{
            change_name: function(){
                this.name = "itheima";
            }
        }
    })
</script>
</html>